package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 企业标签库响应对象
 * @author: liukunlong
 * @date: 2021-03-04 19:09
 */
public class CorpTagListResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * tag_group : [{"group_id":"TAG_GROUPID1","group_name":"GOURP_NAME","create_time":1557838797,"order":1,"deleted":false,"tag":[{"id":"TAG_ID1","name":"NAME1","create_time":1557838797,"order":1,"deleted":false},{"id":"TAG_ID2","name":"NAME2","create_time":1557838797,"order":2,"deleted":true}]}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * tagGroup
     */
    @JSONField(name = "tag_group")
    private List<TagGroupDTO> tagGroup;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<TagGroupDTO> getTagGroup() {
        return tagGroup;
    }

    public void setTagGroup(List<TagGroupDTO> tagGroup) {
        this.tagGroup = tagGroup;
    }

    public static class TagGroupDTO {
        /**
         * groupId
         */ /**
         * group_id : TAG_GROUPID1
         * group_name : GOURP_NAME
         * create_time : 1557838797
         * order : 1
         * deleted : false
         * tag : [{"id":"TAG_ID1","name":"NAME1","create_time":1557838797,"order":1,"deleted":false},{"id":"TAG_ID2","name":"NAME2","create_time":1557838797,"order":2,"deleted":true}]
         */

        @JSONField(name = "group_id")
        private String groupId;
        /**
         * groupName
         */
        @JSONField(name = "group_name")
        private String groupName;
        /**
         * createTime
         */
        @JSONField(name = "create_time")
        private Integer createTime;
        /**
         * order
         */
        @JSONField(name = "order")
        private Integer order;
        /**
         * deleted
         */
        @JSONField(name = "deleted")
        private Boolean deleted;
        /**
         * tag
         */
        @JSONField(name = "tag")
        private List<TagDTO> tag;

        public String getGroupId() {
            return groupId;
        }

        public void setGroupId(String groupId) {
            this.groupId = groupId;
        }

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }

        public Integer getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Integer createTime) {
            this.createTime = createTime;
        }

        public Integer getOrder() {
            return order;
        }

        public void setOrder(Integer order) {
            this.order = order;
        }

        public Boolean getDeleted() {
            return deleted;
        }

        public void setDeleted(Boolean deleted) {
            this.deleted = deleted;
        }

        public List<TagDTO> getTag() {
            return tag;
        }

        public void setTag(List<TagDTO> tag) {
            this.tag = tag;
        }

        public static class TagDTO {
            /**
             * id
             */ /**
             * id : TAG_ID1
             * name : NAME1
             * create_time : 1557838797
             * order : 1
             * deleted : false
             */

            @JSONField(name = "id")
            private String id;
            /**
             * name
             */
            @JSONField(name = "name")
            private String name;
            /**
             * createTime
             */
            @JSONField(name = "create_time")
            private Integer createTime;
            /**
             * order
             */
            @JSONField(name = "order")
            private Integer order;
            /**
             * deleted
             */
            @JSONField(name = "deleted")
            private Boolean deleted;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Integer getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Integer createTime) {
                this.createTime = createTime;
            }

            public Integer getOrder() {
                return order;
            }

            public void setOrder(Integer order) {
                this.order = order;
            }

            public Boolean getDeleted() {
                return deleted;
            }

            public void setDeleted(Boolean deleted) {
                this.deleted = deleted;
            }
        }
    }
}
